<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>网站后台管理中心- Powered by UUASK</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/<?php echo C('UU_ADMINTPL_DIR');?>/public/css/common.css" rel="stylesheet" type="text/css">
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.min.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.highlight-3.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.vtip-min.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.dialog.js"></script>
<!--[if lt IE 9]>
  <script type="text/javascript" src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/PIE.js"></script>
  <script type="text/javascript">
    (function($){
        $.pie = function(name, v){
            // 如果没有加载 PIE 则直接终止
            if (! PIE) return false;
            // 是否 jQuery 对象或者选择器名称
            var obj = typeof name == 'object' ? name : $(name);
            // 指定运行插件的 IE 浏览器版本
            var version = 9;
            // 未指定则默认使用 ie10 以下全兼容模式
            if (typeof v != 'number' && v < 9) {
                version = v;
            }
            // 可对指定的多个 jQuery 对象进行样式兼容
            if ($.browser.msie && obj.size() > 0) {
                if ($.browser.version*1 <= version*1) {
                    obj.each(function(){
                        PIE.attach(this);
                    });
                }
            }
        }
    })(jQuery);
    if ($.browser.msie) {
      $.pie('.pie_about');
    };
  </script>
<![endif]-->
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.disappear.tooltip.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/common.js"></script>
</head>
<body>
<div class="allpagetop">任务设置<strong>/</strong>列表</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">任务设置</div>
				<div class="topnav">
			         
					  <a href="<?php echo RU('task/lists',array('type'=>''));?>" <?php if(($type == '') AND (ACTION_NAME != 'lv')): ?>class="select"<?php endif; ?>>全部</a>
					  <a href="<?php echo RU('task/lists',array('type'=>1));?>" <?php if($type == '1'): ?>class="select"<?php endif; ?>>单次任务</a>
					  <a href="<?php echo RU('task/lists',array('type'=>2));?>" <?php if($type == '2'): ?>class="select"<?php endif; ?>>循环任务</a>
				 	  <a href="<?php echo RU('task/lv');?>" <?php if(ACTION_NAME == 'lv'): ?>class="select"<?php endif; ?>>等级规则</a>	  
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
  
    <form id="form1" name="form1" method="post" action="<?php echo RU('task/lvsave');?>">
	
	  <div class="admin_list_th">
	    <div class="td1" style=" width:50%;"> 
		  <div class="left_txt_td">等级名称</div>
		</div>
		<div class="td4" style=" width:20%;">起始经验</div>
		<div class="td3" style=" width:20%;">经验要求</div>
 		<div class="td5" style=" width:10%;">  <div class="admin_list_right">操作</div></div>
	  <div class="clear"></div>
	  </div>
	  
	  
	    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><div class="admin_list_tr link_bk">
						<div class="td1" style=" width:50%;">
						  <div class="left_txt_td striking">
							 <input name="id[]" type="hidden" id="id" value="<?php echo ($list["id"]); ?>"  />
							 <input name="name[]" type="text"  class="input_text_default small" maxlength="100" value="<?php echo ($list["name"]); ?>" />
							
							</div>
						</div>
						<div class="td4" style=" width:20%;">
						<span class="userLV">LV<?php echo ($list["lv_id"]); ?></span><?php echo ($list["exp_min"]); ?>~<?php echo ($list["exp_max"]); ?>
						</div>
						<div class="td3" style=" width:20%;">
								<input name="exp_min[]" type="text"  class="input_text_default small" maxlength="100" value="<?php echo ($list["exp_min"]); ?>" style="width:120px;"/>
						</div>
						 
						<div class="td5" style=" width:10%;">
								<div class="admin_list_right link_blue">
								<a href="<?php echo RU('task/lv_delete',array('id'=>$list['id']));?>" onclick="return confirm('你确定要删除吗？')">删除</a>
								</div>
						</div>
						
				 
					  <div class="clear"></div>
					  </div><?php endforeach; endif; else: echo "" ;endif; ?>
	   
	  <div id="J_add_show_div"></div>
	  
 <div class="admin_list_tr">
						<div class="td1" style=" width:60%;">
								<div class="category_list_add" id="J_category_add">添加等级</div>
						</div>	 
				 
					 	<div class="clear"></div>
	</div> 
      

  
  
    <?php if(empty($list)): ?><div class="admin_list_no_info">没有任何信息！</div><?php endif; ?>
	
	
	
	<div class="admin_list_foot">
			  <div class="btnbox">
			 	 <input type="submit"  class="admin_submit"   value="保存设置 "/>			 
			  </div>
			  
			  
			  
	          
	</div>
	  </form>
  
</div>
<div class="footer link_lan">
Powered by <a href="http://www.zgxmall.com" target="_blank"><span style="color:#009900">中港星企业服务</span><span style="color: #FF3300">论坛</span></a> <?php echo C('UU_VERSION');?>
</div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){

function get_add_html()
{
	var html='';
	html+="<div class=\"admin_list_tr\">";
	html+="<div class=\"td1\" style=\" width:50%;\">";
	html+="<div class=\"left_txt_td striking\">";
	html+="<input name=\"add_name[]\" type=\"text\"  class=\"input_text_default small\" value=\"未命名\"/>";
	html+="</div>";
	html+="</div>";
	html+="<div class=\"td2\" style=\" width:25%;\">&nbsp;";
	html+="</div>";
	html+="<div class=\"td3\" style=\" width:25%;\">";
	html+="<input name=\"add_exp_min[]\" type=\"text\"  class=\"input_text_default small\" maxlength=\"100\"  style=\"width:120px;\" value=\"0\"/>";
	html+="</div>";
	html+="<div class=\"clear\"></div>";
	html+="</div>";
	return html;
}
//添加顶级分类
$("#J_category_add").live('click',function()
{
	html=get_add_html();
	$("#J_add_show_div").before(html);
});
 
});
</script>
</body>
</html>